#pragma once

#include <vector>
#include <string>
#include ".\recvinfo.h"
#include <afxmt.h>
#include "afxmt.h"

using namespace std;

class RecvPool
{
private:
	CCriticalSection lock;
	vector<RecvInfo *> recvlist;
	void AddSMS(string DestId, string ServiceID, short signid, int total, int seq, string SrcId, byte SrcType, string LinkId, string info);
public:
	RecvPool(void);
	~RecvPool(void);
	void AddSMS(string DestId, string ServiceID, byte Fmt, string SrcId, byte SrcType, string LinkId, string info);
	bool FinSMS(string &DestId, string &ServiceID, string &SrcId, byte &SrcType, string &LinkId, string &MsgContent);
};
